package com.yima.baseproj.module.app.gentable.table.model;

import com.yima.baseproj.module.app.gentable.column.model.AppGenTableColumnAddParamModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class AppGenTableEditParamModel extends AppGenTableAddParamModel {

    @NotBlank(message = "数据不存在，请刷新重试")
    @ApiModelProperty(value = "id")
    private String id = "";

    @ApiModelProperty(value = "表名称")
    private String tableName;

    @ApiModelProperty(value = "表描述")
    private String tableComment;

    @ApiModelProperty(value = "使用的模板（crud单表操作 tree树表操作）")
    private String tplCategory;

    @ApiModelProperty(value = "生成包路径")
    private String packageName;

    @ApiModelProperty(value = "实体类名称")
    private String className;

    @ApiModelProperty(value = "实体类描述")
    private String classRemark;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "接口名称")
    private String jiekouPath;

    @ApiModelProperty(value = "生成代码方式（0zip压缩包 1自定义路径）")
    private String genType;

    @ApiModelProperty(value = "生成路径（不填默认项目路径）")
    private String genPath;

    @ApiModelProperty(value = "其它生成选项")
    private String options;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "父级菜单id")
    private String parentMenuId;

    @Valid
    @ApiModelProperty(value = "列")
    private List<AppGenTableColumnAddParamModel> columns;
}